import { Base } from "@/js/api/base";
import axios from "axios";

 export class Card extends Base {
     // constructor(port) {
     //     super(port);
     //     this.$axios = axios.create({
     //         baseURL: 'http://127.0.0.1:30001' + this.port,
     //         timeout: 30000,// 超时 毫秒
     //     })
     // }
    /**
     * 枚举列表
     * @param params
     * @param callBack
     */
    cardList(params, callBack, setting) {
        return this.get("/card/card/list", params, callBack, setting)
    }
    cardDetail(params, callBack) {
        return this.get("/card/card/detail", params, callBack)
    }
    syncStatus(params, callBack) {
        return this.post("/card/get/status", params, callBack)
    }
    changeStatus(params, callBack) {
        return this.post("/card/change/status", params, callBack)
    }
    speedLimit(params, callBack) {
        return this.post("/card/change/speed_limit", params, callBack)
    }
    numberChange(params, callBack) {
        return this.get("/card/change/logs", params, callBack)
    }
    syncDetail(params, callBack) {
        return this.post("/card/card/sync_detail", params, callBack)
    }
    cardWhiteList(params, callBack) {
        return this.get("/card/voice_whitelist/get", params, callBack)
    }
    cardWhiteListSet(params, callBack) {
        return this.post("/card/voice_whitelist/set", params, callBack)
    }

}